package com.czkt.controller;

import com.czkt.service.SpecificationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class SpecificationsController {
    @Autowired
    SpecificationsService specificationsService;

    @RequestMapping("/specifications/list")
    public Object SpecificationsLIst(){
        return specificationsService.specificationsList();
    }
    @RequestMapping("/specifications/listImgPic")
    public Object SpecificationsLIstImgPic(@RequestParam(defaultValue = "1") Integer specificationsId){
        return specificationsService.specificationsImgPic(specificationsId);
    }
}
